/*
  DateTimeHI.h - Date & Time human interface
		    Library for getting date and time via user input
		    and display clock using LCD Keypad shield 
  Copyright (c) 2013 Lukas Vavra.  All right reserved.

  Versions:
  1.0	9.11.2013	

*/


// ensure this library description is only included once
#ifndef DateTimeHI_h
#define DateTimeHI_h

// String constants
#define T_SETTIME "Nastaveni casu:"
#define T_SETDATE "Nastaveni data:"

// include Arduino header
#include "Arduino.h"
// include LiquidCrystal header
#include "LiquidCrystal.h"
// include AnalogKeypad header
#include "AnalogKeypad.h"

// library interface description
class DateTimeHI
{
  // user-accessible "public" interface
  public:
    DateTimeHI(AnalogKeypad *a, LiquidCrystal *lc);
    void inputDate(void);
    void inputTime(void);
    void changeTime(int _hour, int _minute, int _second);
    void changeDate(int _day, int _month, int _year);
    void showTD(int h, int mi, int s, int d, int mo, int y);

    int hour;
    int minute;
    int second;
    int day;
    int month;
    int year;

  // library-accessible "private" interface
  private:
    AnalogKeypad *ak;
    LiquidCrystal *lcd;
};

#endif

